package com.openbravo.data.loader;

import java.sql.Connection;

import com.openbravo.data.basic.BasicException;
import com.openbravo.data.loader.dialect.SessionDialect;

public interface I_Session {

     void connect() throws BasicException;

     void close();

     Connection getConnection() throws BasicException;

     void begin() throws BasicException;

     void commit() throws BasicException;

     void rollback() throws BasicException;

     boolean isTransaction();

     String getURL() throws BasicException;

     SessionDialect getDialect();

     String getPlatform();

     Connection getConnection(boolean readOnly) throws BasicException;

}